import { LAYOUT } from '../consts'

const menus: any[] = [{
  name: 'demo:manage',
  path: '/demo/manage',
  meta: {
      title: '演示模块',
      icon: 'SettingOutlined',
      orderNo: 6,
      component: 'LAYOUT',
      isSync: false,
      perm: 'demo:manage'
  },
  component: LAYOUT,
  children: [{
    path: '/demo/form',
    name: 'demo:form',
    meta: {
        title: '普通表单',
        orderNo: 9,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:form',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/form/index.vue')
    }
  },{
    path: '/demo/table',
    name: 'demo:table',
    meta: {
        title: '普通表格',
        orderNo: 9,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:table',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/table/index.vue')
    }
  },{
    path: '/demo/crud',
    name: 'demo:crud',
    meta: {
        title: '普通Crud',
        orderNo: 9,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:crud',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/crud/index.vue')
    }
  },{
    path: '/demo/tree-crud',
    name: 'demo:tree-crud',
    meta: {
        title: '树型Crud',
        orderNo: 10,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:tree-crud',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/crud/tree.vue')
    }
  },{
    path: '/demo/modal',
    name: 'demo:modal',
    meta: {
        title: '对话框',
        orderNo: 10,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:modal',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/modal/index.vue')
    }
  },{
    path: '/demo/drawer',
    name: 'demo:drawer',
    meta: {
        title: '抽屉',
        orderNo: 10,
        icon: 'DeploymentUnitOutlined',
        perm: 'demo:drawer',
        affix: false
    },
    component: () =>{
        return import('/@/views/demo/drawer/index.vue')
    }
  }]
}]
export default menus